package com.zp.master.modules.service;


import com.zp.master.common.abstracts.AbstractService;
import com.zp.master.modules.entity.SysRole;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;

@Component
public interface SysRoleService extends AbstractService {
    /**
     * 查询角色内容
     * @param name
     * @return
     */
    public Set<String> getDescription (String name);

    /**
     * 获取用户的角色
     *
     * @param userId
     * @return
     */
    List<SysRole> listRolesByUserId(Long userId);
}
